package com.patMall.mapper;

import com.patMall.entity.UserAddress;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserAddressMapper {
    int deleteByPrimaryKey(Integer addressId);


    UserAddress selectByPrimaryKey(Integer addressId);

    List<UserAddress> selectAll();
    int updateByPrimaryKey(UserAddress row);
    List<UserAddress> selectAddressByUserId(Integer userId);
    int insert(UserAddress row);

    UserAddress selectById(@Param("userId") Integer userId,@Param("isDefault") Integer isDefault);
}